// import {
//     userSetter
// } from 'core-js/fn/symbol'
import vue from 'vue'
import VueRouter from 'vue-router'
// import shouye from '../components/shouye.vue'  
// import register from '../components/register.vue'
// import platform from '../components/platform.vue'
const shouye = () => import('../components/shouye.vue')
const first = () => import('../components/container.vue/first.vue')
const second = () => import('../components/container.vue/second.vue')
const third = () => import('../components/container.vue/third.vue')
const user = () => import('../components/container.vue/user.vue')
const fifth = () => import('../components/container.vue/fifth.vue')

const register = () => import('../components/register.vue')
const platform = () => import('../components/platform.vue')


vue.use(VueRouter)






export default new VueRouter({

    routes: [{
            path: '/', //默认
            redirect: '/shouye', //重定向
            meta: {
                title: '呼和浩特发展和改革委员会首页'
            }
        },
        {
            path: '/shouye',
            name: 'shouye',
            component: shouye,
            meta: {
                title: '呼和浩特发展和改革委员会首页'
            }
        },
        {
            path: '/register',
            name: 'register',
            component: register,
            meta: {
                title: '呼和浩特发展和改革委员会注册页'
            }
        },
        {
            path: '/platform',
            name: 'platform',
            component: platform,
            meta: {
                title: '呼和浩特发展和改革委员会平台'
            },
            children: [{
                    path: '/',
                    redirect: 'first',
                    meta: {
                        title: '呼和浩特发展和改革委员会平台'
                    },
                },
                {
                    path: 'first',
                    component: first,
                    meta: {
                        title: '呼和浩特发展和改革委员会平台'
                    },
                },
                {
                    path: 'second',
                    component: second,
                    meta: {
                        title: '呼和浩特发展和改革委员会平台'
                    },
                },
                {



                    path: 'third',
                    component: third,
                    meta: {
                        title: '呼和浩特发展和改革委员会平台'
                    },
                },
                {
                    path:'fifth',
                    component:fifth,
                    meta:{
                        title:'呼和浩特发展和改革委员会平台'
                    }
                },
                {
                    path: 'user',
                    component: user,
                    meta: {
                        title: '呼和浩特发展和改革委员会用户中心平台'
                    },
                }
            ]
        },
    ],
    mode: 'history',
    // linkActiveClass:'active'
})